#include "codec.h"

static QTextCodec* gbk_codec = QTextCodec::codecForName("GBK");
QString un_gbk(const char*ChnStr)
{
    return gbk_codec->toUnicode(ChnStr);
}
static QTextCodec* unic_codec = QTextCodec::codecForName("GBK");
QCString un_unic(const QString ChnStr)
{
    return unic_codec->fromUnicode(ChnStr);
}

static QTextCodec* utf8_codec = QTextCodec::codecForName("UTF-8");
QString cntr(const char* ChnStr)
{

    return utf8_codec->toUnicode(ChnStr);
}
QString cntr(QString chstr)
{
	return utf8_codec->toUnicode(chstr.latin1());
}
